<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>调整申请计划</title>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#planForm").validationEngine({
					promptPosition: "topLeft",
					ajaxFormValidation: true,
					onAjaxFormComplete: function (status, form, json, options){
						if (json === 1) {
							art.dialog.tips("<label class='success'>修改成功！</label>", 1);
			        		$("button").attr("disabled", true);
							window.parent.location.reload();
						}else{
							art.dialog.tips("<label class='error'>修改失败，请刷新页面重试！</label>", 1);
						}
					}
				});
			});
		</script>
	</head>
	<body>
		<div class="container_16">
			<div class="grid_16">
				<div class="content_top">
					<span>调整申请计划</span>
				</div>
				<div class="content_bottom">
					<form id="planForm" action="${ctx}/savePlan.html" method="post">
						<input type="hidden" name="vipServiceId" value="${vipServiceId }" />
						<table cellpadding="0" cellspacing="0" style="margin-left: 35px; width: 450px;">
							<tr>
								<td>
									<label>完善申请者信息</label>
									<input type="hidden" name="planList[0].name" value="完善申请者信息">
									<input type="hidden" name="planList[0].type" value="0">
								</td>
								<td>
									<input type="text" id="info" name="planList[0].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"info" : "%Y-%m-%d"
											}
										});
									</script>									
								</td>
								<td>
									<select name="planList[0].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									<label>完成选校</label>
									<input type="hidden" name="planList[1].name" value="完成选校">
									<input type="hidden" name="planList[1].type" value="1">
								</td>
								<td>
									<input type="text" id="school" name="planList[1].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"school" : "%Y-%m-%d"
											}
										});
									</script>
								</td>
								<td>
									<select name="planList[1].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									<label>完成文书写作</label>
									<input type="hidden" name="planList[2].name" value="完成文书写作">
									<input type="hidden" name="planList[2].type" value="2">
								</td>
								<td>
									<input type="text" id="write" name="planList[2].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"write" : "%Y-%m-%d"
											}
										});
									</script>									
								</td>
								<td>
									<select name="planList[2].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									<label>检查材料清单</label>
									<input type="hidden" name="planList[3].name" value="检查材料清单">
									<input type="hidden" name="planList[3].type" value="3">
								</td>
								<td>
									<input type="text" id="materials" name="planList[3].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"materials" : "%Y-%m-%d"
											}
										});
									</script>
								</td>
								<td>
									<select name="planList[3].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									<label>提交申请</label>
									<input type="hidden" name="planList[4].name" value="提交申请">
									<input type="hidden" name="planList[4].type" value="4">
								</td>
								<td>
									<input type="text" id="apply" name="planList[4].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"apply" : "%Y-%m-%d"
											}
										});
									</script>
								</td>
								<td>
									<select name="planList[4].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>									
								</td>
							</tr>
							<tr>
								<td>
									<label>材料寄送</label>
									<input type="hidden" name="planList[5].name" value="材料寄送">
									<input type="hidden" name="planList[5].type" value="5">
								</td>
								<td>
									<input type="text" id="tosend" name="planList[5].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"tosend" : "%Y-%m-%d"
											}
										});
									</script>
								</td>
								<td>
									<select name="planList[5].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									<label>申请截至日期</label>
									<input type="hidden" name="planList[6].name" value="申请截至日期">
									<input type="hidden" name="planList[6].type" value="6">
								</td>
								<td>
									<input type="text" id="byDate" name="planList[6].endTime" class="validate[required,custom[date]] input">
									<script>
										datePickerController.createDatePicker( {
											formElements : {
												"byDate" : "%Y-%m-%d"
											}
										});
									</script>
								</td>
								<td>
									<select name="planList[6].status" class="input_100">
										<option value="0">
											未开始
										</option>
										<option value="1">
											进行中
										</option>
										<option value="2">
											已完成
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
								<td colspan="2">
									<label class="btn">
										<input type="submit" value="修改" />
									</label>
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>		
		</div>
	</body>
</html>
					
